package testes_unitarios;

import static org.junit.Assert.assertEquals;
import java.sql.SQLException;
import java.util.ArrayList;
import model.Pizza;
import org.junit.Test;
import controller.CardapioController;

public class TestCardapioController {
	
	CardapioController cc = new CardapioController();
	
	@Test
	public void listarPizzasTest() throws SQLException {
		
		ArrayList<Pizza> cardapio = new ArrayList<>();
		
		cardapio.addAll(cc.listarPizzas());
		
		int quantidadePizzas = cardapio.size();
		
		assertEquals(52, quantidadePizzas);
		
	}

}
